import request from '@/utils/request.js'
/**
 * 资源管理列表
 * @param {*} data
 * @returns
 */
export function list(data) {
    return request({
        url: '/sysFormField/list',
        method: 'get',
        data,
        headers: {
        isToken: true
        },
    })
}
//新增
export function add(data) {
    return request({
        url: '/sysFormField',
        method: 'post',
        data,
        headers: {
        isToken: true
        },
    })
}
//批量修改
export function BulkEdit(data) {
    return request({
        url: '/sysFormField/importField',
        method: 'post',
        data,
        headers: {
        isToken: true
        },
    })
}
//跟据id看详情
export function editId(id) {
    return request({
        url: '/sysFormField/'+id,
        method: 'get',
        headers: {
        isToken: true
        },
    })
}
//编辑
export function edit(data) {
    return request({
        url: '/sysFormField',
        method: 'put',
        data,
        headers: {
        isToken: true
        },
    })
}
/**
 *删除角色
 * @param {*} data
 * @returns
 */
export function del(ids) {
    return request({
        url: '/sysFormField/'+ ids,
        method: 'delete',
        headers: {
        isToken: true
        },
    })
}
/**导出 */
export function ExportData() {
    return request({
        url: '/sysFormField/export',
        method: 'post',
        responseType: 'blob',
        headers: {
        isToken: true
        },
    })
}
/**权限字段下拉数据 */
export function getAuthList(data) {
    return request({
        url: '/sysFormField/getAuthList',
        method: 'get',
		data,
        headers: {
        isToken: true
        },
    })
}

